#include "ResultMap.h"

using namespace std;

ResultMap::ResultMap()
{
}

ResultMap::ResultMap(uint hashWord,map<string,DocMatch> r): word(hashWord), result(r)
{	
}

ResultMap::~ResultMap()
{
}


uint ResultMap::getAmountDocs()
{
	return result.size();
}

uint ResultMap::getAmountMatches(string doc)
{
	return result[doc].matches.size();
}

uint ResultMap::getWord()
{
	return word;
}
//map<string,DocMatch>* ResultMap::getMap()
//{
//	return &result;
//}